#include<iostream>
using namespace std;

int main()
{
    int n = 0, sum = 0;
    cin >> n;
    int i = n * n - n + 1;
    cout << n << "*" << n << "*" << n << "=" << n * n * n << "=";
    while (1)
    {
        sum += i;
        cout << i;
        i += 2;
        if (sum == n * n * n) break;
        cout << "+";
    }
    return 0;
}